package com.imooc.mapping.course2;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.CLASS)
@Mapping(source = "cnName", target = "cn")
public @interface ToEntity {
}
